<?php

return [
    [
        'label'   => '文章管理',
        'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
        'match'   => '@^/article.*@',
        'visible' => true,
        'icon' => 'fa fa-pencil',
        // items可以为空，即没下级菜单
        'items'   => [
            [
                'label' => '站点管理',
                'url'   => ['/article/site'],
                'match' => '@^/article/site.*@',
                'auth'  => [
                    'route:article/site/index',
                    'route:article/site/view',
                    'route:article/site/update',
                    'route:article/site/delete',
                ],
            ],
            [
                'label' => '目录管理',
                'url'   => ['/article/category'],
                'match' => '@^/article/category.*@',
                'auth'  => [
                    'route:article/category/index',
                    'route:article/category/save',
                    'route:article/category/manage',
                    'route:article/category/remove',
                    'route:article/category/move',
                ],
            ],
            [
                'label' => '文章管理',
                'url'   => ['/article/item'],
                'match' => '@^/article/item.*@',
                'auth'  => [
                    'route:article/item/index',
                    'route:article/item/view',
                    'route:article/item/update',
                    'route:article/item/delete',
                ],
            ],
        ],
    ],
];
